		
		<div class="form-list">
			<div class="box-right">
				<?php admin_cat_combo( $menu_cat, $cat_id, 1, 2 ); ?>
				<input type="button" name="button" onclick="submit_url( 'gallery/index/' )" value="Hiển thị" class="button" />
			</div>
				
			<div class="clear-all"></div>
			
			<table border="1" class="form-list-table">
				<tr>
					<th rowspan="2" width="80">Ảnh</th>			
					<th rowspan="2" class="title">Tên ảnh</th>
					<th colspan="2" width="210">Thông số</th>
					<th colspan="2" width="130">Tùy chọn</th>
				</tr>
				<tr>
					<th width="70">Định dạng</th>
					<th width="70">Dung lượng</th>
					<th width="65">Sửa</th>
					<th width="65">Xóa</th>
				</tr>
				<?php 
				if ( $items ) {
					foreach ( $items as $item ) {
						echo '<tr>';	
							echo '<td>';
								echo '<a target="_blank" href="'.admin_gallery().$item['filename'].'">'.image_thumb($item['filename'], 'gallery', 50, 50).'</a>';				 				
							echo '</td>';									
							echo '<td class="title">';
								echo $item['name'];
								echo '<p class="gallery-desc">'.$item['description'].'</p>';
							echo '</td>';
							echo '<td>'.$item['file_type'].'</td>';
							echo '<td>'.$item['size'].' KB</td>';
							echo '<td><a href="'.admin_link( 'gallery/edit/'.$item['id'] ).'" class="edit"><img width="20" height="19" src="'.admin_img().'spacer.gif" alt="Xóa" /></a></td>';
							echo '<td><a onclick="return confirm_del();" href="'.admin_link( 'gallery/del/'.$cat_id.'/'.$p_current.'/'.$item['id'] ).'" class="del"><img width="20" height="20" src="'.admin_img().'spacer.gif" alt="Xóa" /></a></td>';
						echo '</tr>';
					}
				}else echo '<tr><td colspan="6" class="no-data">Chưa có file được đưa lên</td></tr>';	
				?>
			</table>
			
			<?php 
			if ( $paging ) {
				echo '<div class="phantrang">';
				echo $paging ;
				echo '</div>';
			}
			?>	
		</div>